package com.hipmarket.platform.security

import org.springframework.security.authentication.AbstractAuthenticationToken

class JwtAuthenticationToken(val token: String, val required: Boolean = false): AbstractAuthenticationToken(null) {

    override fun getPrincipal(): Any {
        return token
    }

    override fun getCredentials(): Any {
        return required
    }

}